//
// CPreviewController.h
//

#ifndef __H_CPreviewController__
#define __H_CPreviewController__

#include "CGraphController.h"

class CImageGrabberFilter;
class CPreviewController : public CGraphController
{
private:
	CImageGrabberFilter * mGrabber;
	CDXFilter *		mAviDecoder;
	CDXFilter *		mNullRenderer;

public:
	CPreviewController();
	virtual ~CPreviewController();

	virtual BOOL SnapshotToFile(const char * inFile);

protected:
	virtual BOOL ConnectFilters(void);
	virtual BOOL CreateOutputFilters(void);
	virtual void ReleaseOutputFilters(void);

	BOOL TryToConnectImageGrabber(IPin * inOutputPin);
};

#endif // __H_CPreviewController__